a = int(input("a="))  
b =int(input("b=")) 
print("before exchange:",a,b)
if a>b:
    a,b=b,a
print("after exchange:",a,b)


